package leetcode.code0066;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution0066 implements IDebug {

	public abstract int[] plusOne(int[] digits);

	@Override
	public void debug1() {
		String str1 = "[1,2,3]";
		String str2 = "[1,2,4]";
		debug(str1, str2);
	}

	private void debug(String str1, String str2) {
		int[] digits = HelpDebug.str2array3(str1);
		int[] e = HelpDebug.str2array3(str2);
		int[] r = this.plusOne(digits);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String str1 = "[4,3,2,1]";
		String str2 = "[4,3,2,2]";
		debug(str1, str2);
	}

	@Override
	public void debug3() {
		String str1 = "[0]";
		String str2 = "[1]";
		debug(str1, str2);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
